package cc.facesign.admin.mapper;

import cc.facesign.admin.bean.TblConfUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-05-06
 */
public interface TblConfUserMapper extends BaseMapper<TblConfUser> {

    void relateBatch(List<TblConfUser> list);

    void updateIsSign(TblConfUser confUser);

    Boolean isExistRelate(@Param("confId") String confId, @Param("userId") String userId);

    void deleteBatchUserIds(@Param("confId") String confId, @Param("userIds") List<String> userIds);

    void modifySignStateBatch(@Param("code") String code, @Param("cardIds") List<String> cardIds, @Param("state") Integer state);

    void modifySignState(@Param("code") String code, @Param("cardId") String cardId, @Param("state") Integer state);
}
